package com.lgcns.weather.info;

public class LocationInfo {
    private int locationId;
    private String loc1;
    private String loc2;
    private String loc3;
    private String nowStnId;
    private String gridX;
    private String gridY;
    private String weekTemp;
    private String weekCode;
    private String weekExplain;

    public String getLocation() {
        return loc1 + " " + loc2 + " " + loc3;
    }

    public String getCurrentWeatherUrl() {
        return "http://www.kma.go.kr/repositary/xml/weather/sfc_web_map.xml";
    }

    public String getShortRangeUrl() {
        return "http://www.kma.go.kr/wid/queryDFS.jsp?gridx=" + gridX + "&gridy=" + gridY;
    }

    public String getWeekExplainUrl() {
        return "http://www.kma.go.kr/repositary/xml/fct/fct_wid_ws_" + weekExplain + ".xml";
    }

    public String getWeekTempUrl() {
        return "http://www.kma.go.kr/repositary/xml/fct/fct_wid_wc_" + weekTemp + ".xml";
    }

    public String getWeekWeatherUrl() {
        return "http://www.kma.go.kr/repositary/xml/fct/fct_wid_wl_" + weekCode + ".xml";
    }

    public int getLocationId() {
        return locationId;
    }

    public void setLocationId(int locationId) {
        this.locationId = locationId;
    }

    public String getLoc1() {
        return loc1;
    }

    public void setLoc1(String loc1) {
        this.loc1 = loc1;
    }

    public String getLoc2() {
        return loc2;
    }

    public void setLoc2(String loc2) {
        this.loc2 = loc2;
    }

    public String getLoc3() {
        return loc3;
    }

    public void setLoc3(String loc3) {
        this.loc3 = loc3;
    }

    public String getNowStnId() {
        return nowStnId;
    }

    public void setNowStnId(String nowStnId) {
        this.nowStnId = nowStnId;
    }

    public String getGridX() {
        return gridX;
    }

    public void setGridX(String gridX) {
        this.gridX = gridX;
    }

    public String getGridY() {
        return gridY;
    }

    public void setGridY(String gridY) {
        this.gridY = gridY;
    }

    public String getWeekTemp() {
        return weekTemp;
    }

    public void setWeekTemp(String weekTemp) {
        this.weekTemp = weekTemp;
    }

    public String getWeekCode() {
        return weekCode;
    }

    public void setWeekCode(String weekCode) {
        this.weekCode = weekCode;
    }

    public String getWeekExplain() {
        return weekExplain;
    }

    public void setWeekExplain(String weekExplain) {
        this.weekExplain = weekExplain;
    }

    @Override
    public String toString() {
        return "LocationInfo [gridX=" + gridX + ", gridY=" + gridY + ", locationId=" + locationId + ", loc1="
                + loc1 + ", loc2=" + loc2 + ", loc3=" + loc3 + ", nowStnId=" + nowStnId + ", weekCode="
                + weekCode + ", weekExplain=" + weekExplain + ", weekTemp=" + weekTemp + "]";
    }

}
